angular.module('sbAdminApp')
    .service('esfConfigService', function (httpResource) {
        /**
         *
         * @returns {*}
         */
        this.pageQuery = function () {
            return httpResource.get('/esfconfig/pagequery');
        }

        /**
         *
         * @param code
         * @param value
         * @param confMemo
         * @returns {*}
         */
        this.configSave = function (code, value, confMemo) {
            return httpResource.post('/esfconfig/save', {"code": code, "value": value, "confMemo": confMemo});
        }

        /**
         *
         * @param code
         * @returns {*}
         */
        this.configDel = function (code) {
            return httpResource.get('/esfconfig/delete/' + code);
        }
    });
